﻿


using System;
using System.Text;
using System.Collections;
using System.Xml;
using System.Data;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Resources;
using System.Reflection;
using System.Globalization;
using System.Threading;

using Telerik.WebControls;
using UFSoft.UBF.UI.WebControls;
using UFSoft.UBF.UI.WebControls.InterActionComponenet;
using UFSoft.UBF.Util.Log;
using UFSoft.UBF.Util.Context;

//using MagicAjax.UI.Controls;
using UFSoft.UBF.Report.UI.ReportView.Web;
using UFSoft.UBF.UI.WebControlAdapter;
using UFSoft.UBF.UI.FormProcess;
using UFSoft.UBF.UI.IView;
using UFSoft.UBF.UI.Engine;
using UFSoft.UBF.UI.Engine.Builder;
using UFSoft.UBF.UI.Engine.Authorization;
using UFSoft.UBF.UI.MD.Runtime;
using UFSoft.UBF.UI.ActionProcess;
using UFSoft.UBF.UI.ControlModel;
using UFSoft.UBF.UI.Controls;
using UFSoft.UBF.UI.WebControls.Association;
using UFSoft.UBF.UI.WebControls.ClientCallBack;
using System.Web.UI;
using UFSoft.UBF.UI.UIFormPersonalization;
using System.Collections.Specialized;


/***********************************************************************************************
 * Form ID:9ebbb8b6-ff2f-4b93-bbab-2ad5d1526298 
 * Form Name:InventoryMaterialQueryListUIForm
 * UIFactory Auto Generator
 ***********************************************************************************************/
namespace UFIDA.U9.Cust.OTD.ZF.SHXM3003.OTDListUI.InventoryMaterialQueryListUIModel
{
	[FormRegister("UFIDA.U9.Cust.OTD.ZF.SHXM3003.OTDListUI","UFIDA.U9.Cust.OTD.ZF.SHXM3003.OTDListUI.InventoryMaterialQueryListUIModel.InventoryMaterialQueryListUIFormWebPart", "UFIDA.U9.Cust.OTD.ZF.SHXM3003.OTDListUI.WebPart", "9ebbb8b6-ff2f-4b93-bbab-2ad5d1526298","WebPart", "True", 992, 504)] 
	///insert into aspnet_Parts (SysVersion, Path, ClassName, [Assembly], FormId) values (0, 'UFIDA.U9.Cust.OTD.ZF.SHXM3003.OTDListUI', 'UFIDA.U9.Cust.OTD.ZF.SHXM3003.OTDListUI.InventoryMaterialQueryListUIModel.InventoryMaterialQueryListUIFormWebPart', 'UFIDA.U9.Cust.OTD.ZF.SHXM3003.OTDListUI.WebPart', '9ebbb8b6-ff2f-4b93-bbab-2ad5d1526298')
	///<siteMapNode url="~/erp/simple.aspx?lnk=9ebbb8b6-ff2f-4b93-bbab-2ad5d1526298" title="InventoryMaterialQueryListUIForm"/>
    public partial class InventoryMaterialQueryListUIFormWebPart : UFSoft.UBF.UI.FormProcess.BaseWebForm
    {
		#region Page Controller/Code Behind
        private static readonly ILogger logger = LoggerManager.GetLogger(typeof(InventoryMaterialQueryListUIFormWebPart));
        private string assemblyName = System.Reflection.Assembly.GetExecutingAssembly().FullName;
        //private string displayNamePostfix = "displayName";

		#region 强类型化基类属性.
		public new InventoryMaterialQueryListUIModelAction Action
		{
			get { return (InventoryMaterialQueryListUIModelAction)base.Action; }
			set { base.Action = value; }
		}
		InventoryMaterialQueryListUIModelModel _uimodel=null;
		public new InventoryMaterialQueryListUIModelModel Model
		{
			get 
			{
			     if(_uimodel == null){
			          _uimodel = new InventoryMaterialQueryListUIModelModel();
			     }
			     return _uimodel; 
			}
			set { _uimodel = value; }
		}
        protected override IUIModel UIModel{
            get{
                return this.Model;
            }
            set{
                this.Model = value as InventoryMaterialQueryListUIModelModel;
            }
        }
		#endregion 
		public FormAdjust adjust;
        #region variable declaration
        IUFToolbar Toolbar2;
        IUFButton BtnOutput;
        IUFCard Card0;
        IUFButton OnSelect;
        IUFCard Card3;
        IUFDataGrid DataGrid1;
		UpdatePanel updatePanel;
		HiddenField wpFindID;
		IUFContainer topLevelPanel;     
        IUFSeparator SeparatorInFavorites;
        IUFButton BtnDefaultValues;
        #endregion
        
        #region constructor
        public InventoryMaterialQueryListUIFormWebPart()
        {
            FormID = "9ebbb8b6-ff2f-4b93-bbab-2ad5d1526298";
            IsAutoSize = bool.Parse("True");
            NewIsAutoSize = bool.Parse("False");
        }
        #endregion


	
            
	//获取档案版型结果: 

        #region eventBind and databind
        private void EventBind()
        {
			//事件绑定模板
				//Button控件事件
			this.BtnOutput.Click += new EventHandler(BtnOutput_Click);		
						
				//Button控件事件
			this.OnSelect.Click += new EventHandler(OnSelect_Click);		
						

	
			//Grid控件的分页事件				
			((UFWebDataGridAdapter)this.DataGrid1).GridMakePageEventHandler += new GridMakePageDelegate(UFGridDataGrid1_GridMakePageEventHandler);
             //Grid控件的客户化筛选，定位事件
            ((UFWebDataGridAdapter)this.DataGrid1).GridCustomFilterHandler += new GridCustomFilterDelegate(UFGridDataGrid1_GridCustomFilterHandler);

            AfterEventBind();
        }
        #endregion            
        
		#region override method
		protected override void OnLoad(EventArgs e)
		{
			base.OnLoad2(e);
		}
		protected override void OnLoadDataDo(EventArgs e)
		{
		    adjust.ProcessAdjustBeforeOnLoad(this);
			if (UIEngineHelper.IsDataBind(PageStatus, this))
			{
				if(this.Model==null){				        
					this.Model = new InventoryMaterialQueryListUIModelModel();
				}
				OnLoadConsumer(new InParameterModel[]{},new InParameterModel[]{});
				OnLoadData(this);
				this.IsDataBinding = true ; //加载完数据要绑定一次.目前加这.
			}
			else
			{
				//去除.已经移入到OnInit()中.
				//this.Model = (InventoryMaterialQueryListUIModelModel)this.CurrentState[this.TaskId.ToString()];
			}
			adjust.ProcessAdjustAfterOnLoadData(this);
		            AfterOnLoad();
            
            adjust.ProcessAdjustAfterOnLoad(this);
		}
		protected override void OnPreRender(EventArgs e)
		{
			base.OnPreRender2(e);
		}
        protected override void OnPreRenderDo(EventArgs e)
        {
            adjust.ProcessAdjustBeforeOnPreRender(this);
			base.OnPreRender(e);
			this.CurrentState[this.TaskId.ToString()] = this.Model;
			RegisterClearWebPartPadding();
            UFIDA.U9.UI.PDHelper.FormAuthorityHelper.SetWebPartAuthorization(this);
            
			if (IsDataBinding) //2006-9-7 可由开发人员控制
			{
				BeforeUIModelBinding();
								if(!Page.IsPostBack)
				{
					EnumTypeBinding.BindEnumControls(this);
				}
				UFIDA.U9.UI.Commands.CommandHelper.BindFlexData(this);
				adjust.ProcessAdjustBeforeDataBinding(this);
				if (this.IsOnlyDataBinding)
				{
					this.DataBinding();
				}
				adjust.ProcessAdjustAfterDataBinding(this);

				AfterUIModelBinding();
			}
			adjust.ProcessAdjustAfterOnPreRender(this);
        }
		protected override void OnInit(EventArgs e)
		{
			base.OnInit2(e);
		}
		protected override void OnInitDo(EventArgs e)
		{			 
			this.Page.InitComplete += new EventHandler(Page_InitComplete);
			WebPartBuilder.InitWebPart(this);
            this.Action = new InventoryMaterialQueryListUIModelAction(this);
            adjust = new FormAdjust();
		    CreateFormChildControls();
		}
        void Page_InitComplete(object sender, EventArgs e)
        {

            adjust.ProcessInit(this);
        }
        #endregion

      
        
        #endregion

	
		/// <summary>
        /// WebPart View
        /// </summary>
        #region view Create Contorls
        private void CreateFormChildControls()
        {
            IUFContainer _panel = UIControlBuilder.BuildTopLevelContainer(this,"InventoryMaterialQueryListUIForm",true,992,504);
            CommonBuilder.ContainerGridLayoutPropBuilder(_panel, 1, 3, 0, 10, 0, 0, 0, 5);
			InitViewBindingContainer(this, _panel,  null, "", "", null, 1, "");
			UIControlBuilder.BuildContainerGridLayout(_panel, 10,new GridColumnDef[]{new GridColumnDef(992,bool.Parse("False"),"Title"),},new GridRowDef[]{new GridRowDef(28,bool.Parse("True")),new GridRowDef(421,bool.Parse("False")),new GridRowDef(25,bool.Parse("True")),});
            //???还有用么?
            topLevelPanel = _panel;    
            
            UIControlBuilder.BuildCommonControls(this,ref updatePanel,ref wpFindID);
            





	
			_BuilderControl_Toolbar2(_panel);

		
			UIControlBuilder.BuilderUFControl(this.Toolbar2, "1");		


	
			_BuilderControl_Card0(_panel);

		
			UIControlBuilder.BuilderUFControl(this.Card0, "3");		


	
			_BuilderControl_Card3(_panel);

		
			UIControlBuilder.BuilderUFControl(this.Card3, "2");		



			
     
			
			
            EventBind();
            AfterCreateChildControls();
            
        }        







				        
        private void _BuilderControl_Toolbar2(IUFContainer container)
        {
            IUFToolbar _Toolbar = UIControlBuilder.BuilderToolBarControl(container,"Toolbar2",true, true, "1",992, 28, 0, 0, 1, 1,"100");
            this.Toolbar2 = _Toolbar;
            
            ///foreach Toolbar下的所有控件，增加到此容器
                            this.BtnOutput = UIControlBuilder.BuilderToolbarButton(_Toolbar, "True", "BtnOutput", "True", "True", 35, 28,"23", "",true,false,"688fd549-5a92-49cc-8072-6d5377f6409a","688fd549-5a92-49cc-8072-6d5377f6409a","9ae2993a-ecdc-4004-96f2-62693d6381a3");
		
            UIControlBuilder.SetButtonAccessKey(this.BtnOutput);
            this.BtnOutput.UIModel = this.Model.ElementID;
            this.BtnOutput.Action = "OutputClick";
	
            
            ((UFWebToolbarAdapter)_Toolbar).RemoveControls();
        }



	                   
        private IUFCard _BuilderControl_Card0(IUFContainer container)
        {
            IUFCard _UFCard = UIControlBuilder.BuildCard(container,"Card0",false,"FunctionBar", true, true, "3","","f33c25f4-2726-487e-8ef5-c4f3d5032aad");
			CommonBuilder.GridLayoutPropBuilder(container, _UFCard, 992, 25, 0, 2, 1, 1, "100");
            CommonBuilder.ContainerGridLayoutPropBuilder(_UFCard, 22, 1, 0, 5, 10, 3, 10, 2);
			InitViewBindingContainer(this, _UFCard,  null, "", "", null, 1, "");
			UIControlBuilder.BuildContainerGridLayout(_UFCard, 5,new GridColumnDef[]{new GridColumnDef(80,bool.Parse("True"),"Spacing"),new GridColumnDef(10,bool.Parse("True"),"Spacing"),new GridColumnDef(80,bool.Parse("True"),"Spacing"),new GridColumnDef(10,bool.Parse("True"),"Spacing"),new GridColumnDef(80,bool.Parse("True"),"Spacing"),new GridColumnDef(10,bool.Parse("True"),"Spacing"),new GridColumnDef(80,bool.Parse("True"),"Spacing"),new GridColumnDef(10,bool.Parse("True"),"Spacing"),new GridColumnDef(80,bool.Parse("True"),"Spacing"),new GridColumnDef(10,bool.Parse("True"),"Spacing"),new GridColumnDef(80,bool.Parse("True"),"Spacing"),new GridColumnDef(10,bool.Parse("True"),"Spacing"),new GridColumnDef(80,bool.Parse("True"),"Spacing"),new GridColumnDef(10,bool.Parse("True"),"Spacing"),new GridColumnDef(80,bool.Parse("True"),"Spacing"),new GridColumnDef(10,bool.Parse("True"),"Spacing"),new GridColumnDef(71,bool.Parse("True"),"Value"),new GridColumnDef(10,bool.Parse("True"),"Spacing"),new GridColumnDef(80,bool.Parse("True"),"Spacing"),new GridColumnDef(10,bool.Parse("True"),"Spacing"),new GridColumnDef(80,bool.Parse("True"),"Spacing"),new GridColumnDef(1,bool.Parse("False"),"Spacing"),},new GridRowDef[]{new GridRowDef(20,bool.Parse("True")),});
            this.Card0 = _UFCard;

            ///foreach UFCard下的所有控件，增加到此容器





				this.OnSelect = UIControlBuilder.BuilderUFButton(_UFCard, true, "OnSelect", true, true, 80, 20, 0, 0, 1, 1, "100","", this.Model.ElementID,"OnSelect",false,"f767e18f-3f69-4c37-93b9-da0f29d7363b","f767e18f-3f69-4c37-93b9-da0f29d7363b","5a51aa16-7028-437d-b953-2bcbf448fe76");
	

		
			UIControlBuilder.BuilderUFControl(this.OnSelect, "0");		



	

            
            container.Controls.Add(_UFCard);
            return _UFCard;
        }

	                   
        private IUFCard _BuilderControl_Card3(IUFContainer container)
        {
            IUFCard _UFCard = UIControlBuilder.BuildCard(container,"Card3",false,"none", true, true, "2","","65fb2588-249a-4d00-9d15-1a348b753966");
			CommonBuilder.GridLayoutPropBuilder(container, _UFCard, 992, 421, 0, 1, 1, 1, "100");
            CommonBuilder.ContainerGridLayoutPropBuilder(_UFCard, 2, 2, 0, 5, 10, 0, 10, 0);
			InitViewBindingContainer(this, _UFCard,  null, "", "", null, 1, "");
			UIControlBuilder.BuildContainerGridLayout(_UFCard, 5,new GridColumnDef[]{new GridColumnDef(971,bool.Parse("True"),"Value"),new GridColumnDef(1,bool.Parse("False"),"Spacing"),},new GridRowDef[]{new GridRowDef(415,bool.Parse("True")),new GridRowDef(1,bool.Parse("False")),});
            this.Card3 = _UFCard;

            ///foreach UFCard下的所有控件，增加到此容器





	
			_BuilderControl_DataGrid1(_UFCard);

		
			UIControlBuilder.BuilderUFControl(this.DataGrid1, "1");		



	

            
            container.Controls.Add(_UFCard);
            return _UFCard;
        }

				





       
        private void _BuilderControl_DataGrid1(IUFContainer container)
        {
            IUFDataGrid _UFGrid = UIControlBuilder.BuildGridControl("DataGrid1", UFSoft.UBF.UI.ControlModel.EditStatus.Edit, false, false,false,false,false,true,20,false, false) ;
  			UIControlBuilder.BuilderUFControl(_UFGrid, "True", "True", "1");
			CommonBuilder.GridLayoutPropBuilder(container, _UFGrid, 972, 421, 0, 0, 2, 2, "100");
			InitViewBindingContainer(this, _UFGrid,  this.Model.InventoryMaterialQueryView, "InventoryMaterialQueryView", "", null, 20, "库存材料查询");
			((UFSoft.UBF.UI.WebControlAdapter.UFWebDataGridAdapter)_UFGrid).PagingStrategy=UFSoft.UBF.UI.ControlModel.GridPagingStrategy.Auto;
			_UFGrid.AllowSelectAllPage=false;
			((UFSoft.UBF.UI.WebControls.UFGrid)_UFGrid).IsSumAllData=false;
		        ((UFSoft.UBF.UI.WebControls.UFGrid)_UFGrid).IsSumSelectedData=false;
            this.DataGrid1 = _UFGrid;
            container.Controls.Add(_UFGrid);



			IUFDataGridColumn column ;
			GridColumn gridColumn ;
	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"ID37","NumberColumnModel", "", 0,this.Model.InventoryMaterialQueryView.Fields["ID"]/*ID*/,"ID", true, false, true, false, false, false, 7, 100, "",true, false,"","170bd0d9-16be-481d-9f70-8ceb425d0701","170bd0d9-16be-481d-9f70-8ceb425d0701","f296168c-b982-4634-ba30-68b1908334a0");
			GridControlBuilder.GridNumberColumnBuilder((IUFNumberColumn)column, NumbericType.Numberic, 79228162514264337593543950335m, -79228162514264337593543950335m, null, null, null, null
			,true,"",false,"1","1");
	  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"SysVersion0","NumberColumnModel", "", 0,this.Model.InventoryMaterialQueryView.Fields["SysVersion"]/*SysVersion*/,"SysVersion", false, false, true, false, false, false, 7, 100, "",true, false,"","381e9eee-2285-462b-8b13-18cb1107bb62","381e9eee-2285-462b-8b13-18cb1107bb62","aaeb7736-e236-473e-bba1-3e8c4cf8ee73");
			GridControlBuilder.GridNumberColumnBuilder((IUFNumberColumn)column, NumbericType.Numberic, 79228162514264337593543950335m, -79228162514264337593543950335m, null, null, null, null
			,true,"",false,"1","1");
	  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"Org0","TextBoxColumnModel", "", 0,this.Model.InventoryMaterialQueryView.Fields["Org"]/*Org*/,"Org", false, true, false, false, false, false, 0, 100, "50",true, false,"","22bda6af-1d1f-4ea5-8515-4b6f677f3df9","","e0a26f1d-b53f-4e5b-99a9-7fbe7aeb9bb2");
         
			GridControlBuilder.GridTextBoxColumnBuilder((IUFTextBoxColumn)column,"",TextAlign.Left, false,"",false,"1","1","50") ;          
	  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"ProductDeptName0","TextBoxColumnModel", "", 0,this.Model.InventoryMaterialQueryView.Fields["ProductDeptName"]/*ProductDeptName*/,"ProductDeptName", false, true, false, false, false, true, 0, 100, "50",true, false,"","05a50ddf-7a2c-48dd-8525-010c93324330","05a50ddf-7a2c-48dd-8525-010c93324330","81a447e4-ca40-4bd4-8efb-d7b49a2e6572");
         
			GridControlBuilder.GridTextBoxColumnBuilder((IUFTextBoxColumn)column,"",TextAlign.Left, false,"",false,"1","1","50") ;          
	  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"Warehouse","ReferenceColumnModel", "", 0,this.Model.InventoryMaterialQueryView.Fields["Warehouse"]/*Warehouse*/,"Warehouse", false, false, false, false, false, true, 7, 100, "19.0",true, false,"","c3434e19-9057-4939-bbeb-758130036736","c3434e19-9057-4939-bbeb-758130036736","e55cf1c9-badf-47a2-ada6-0329520a2ff9");
			GridControlBuilder.GridReferenceColumnBuilder((IUFFldReferenceColumn)column, ColumnTextAlign.Right, "ID", "Code", "Name", this.Model.InventoryMaterialQueryView.FieldWarehouseCode/*WarehouseCode*/, this.Model.InventoryMaterialQueryView.FieldWarehouseName/*WarehouseName*/, "bb7eec00-144e-4510-b7f1-e6c940cb3046"
			,false,false,580,408);
            ((IUFFldReferenceColumn)column).CtrlId = "e55cf1c9-badf-47a2-ada6-0329520a2ff9";
 			((IUFFldReferenceColumn)column).IsMultiOrg  = false ;
           //foreach Reference's input filter parameter

            //foreach Reference's output set data
							
							
            ((IUFFldReferenceColumn)column).RefRelations.Add(new UFRefRelationAdapter("Code", "WarehouseCode", "Value"));
							
            ((IUFFldReferenceColumn)column).RefRelations.Add(new UFRefRelationAdapter("Name", "WarehouseName", "Value"));
							
            ((IUFFldReferenceColumn)column).ApplyRefRelations();
			  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"WarehouseCode0","TextBoxColumnModel", "", 0,this.Model.InventoryMaterialQueryView.Fields["WarehouseCode"]/*WarehouseCode*/,"WarehouseCode", false, true, false, false, false, true, 0, 100, "50",true, false,"","fd49bd30-72a9-4ef0-bd0c-1041865b80cb","fd49bd30-72a9-4ef0-bd0c-1041865b80cb","d75e21a8-4b80-4bdb-bb89-16cf83f18e6d");
         
			GridControlBuilder.GridTextBoxColumnBuilder((IUFTextBoxColumn)column,"",TextAlign.Left, false,"",false,"1","1","50") ;          
	  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"WarehouseName0","TextBoxColumnModel", "", 0,this.Model.InventoryMaterialQueryView.Fields["WarehouseName"]/*WarehouseName*/,"WarehouseName", false, true, false, false, false, true, 0, 100, "50",true, false,"","88bc8030-200b-4c8a-9563-d0d18df74720","88bc8030-200b-4c8a-9563-d0d18df74720","da80f64c-271e-4ae1-aeaa-273516bac57d");
         
			GridControlBuilder.GridTextBoxColumnBuilder((IUFTextBoxColumn)column,"",TextAlign.Left, false,"",false,"1","1","50") ;          
	  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"ItemMaster0","ReferenceColumnModel", "", 0,this.Model.InventoryMaterialQueryView.Fields["ItemMaster"]/*ItemMaster*/,"ItemMaster", false, false, false, false, false, true, 7, 100, "19.0",true, false,"","7cf37875-baf4-4e9f-988b-1814599d730b","7cf37875-baf4-4e9f-988b-1814599d730b","ab1e9cc5-7de3-42d1-835d-89f716ae78fb");
			GridControlBuilder.GridReferenceColumnBuilder((IUFFldReferenceColumn)column, ColumnTextAlign.Right, "ID", "Code", "Name", this.Model.InventoryMaterialQueryView.FieldItemMasterCode/*ItemMasterCode*/, this.Model.InventoryMaterialQueryView.FieldItemMasterName/*ItemMasterName*/, "beedebc3-5398-46b5-a237-5a3a4d13ad4f"
			,false,false,580,408);
            ((IUFFldReferenceColumn)column).CtrlId = "ab1e9cc5-7de3-42d1-835d-89f716ae78fb";
 			((IUFFldReferenceColumn)column).IsMultiOrg  = false ;
           //foreach Reference's input filter parameter

            //foreach Reference's output set data
							
							
            ((IUFFldReferenceColumn)column).RefRelations.Add(new UFRefRelationAdapter("Code", "ItemMasterCode", "Value"));
							
            ((IUFFldReferenceColumn)column).RefRelations.Add(new UFRefRelationAdapter("Name", "ItemMasterName", "Value"));
							
							
            ((IUFFldReferenceColumn)column).RefRelations.Add(new UFRefRelationAdapter("SPECS", "SPECS", "Value"));
							
							
							
							
							
							
							
							
							
							
							
            ((IUFFldReferenceColumn)column).ApplyRefRelations();
			  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"ItemMasterCode0","TextBoxColumnModel", "", 0,this.Model.InventoryMaterialQueryView.Fields["ItemMasterCode"]/*ItemMasterCode*/,"ItemMasterCode", false, true, false, false, false, true, 0, 100, "50",true, false,"","e664e719-502a-4776-9bc4-eb7b4007a8a6","e664e719-502a-4776-9bc4-eb7b4007a8a6","122567d5-1d97-4737-b5cf-43d9d60bdc46");
         
			GridControlBuilder.GridTextBoxColumnBuilder((IUFTextBoxColumn)column,"",TextAlign.Left, false,"",false,"1","1","50") ;          
	  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"ItemMasterName0","TextBoxColumnModel", "", 0,this.Model.InventoryMaterialQueryView.Fields["ItemMasterName"]/*ItemMasterName*/,"ItemMasterName", false, true, false, false, false, true, 0, 100, "50",true, false,"","86c9e627-25bd-48dc-9248-c8c39aa072d7","86c9e627-25bd-48dc-9248-c8c39aa072d7","a307513d-3240-48f6-9bad-863a0671fa7b");
         
			GridControlBuilder.GridTextBoxColumnBuilder((IUFTextBoxColumn)column,"",TextAlign.Left, false,"",false,"1","1","50") ;          
	  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"RawItemMastercode0","TextBoxColumnModel", "", 0,this.Model.InventoryMaterialQueryView.Fields["RawItemMastercode"]/*RawItemMastercode*/,"RawItemMastercode", false, true, false, false, false, true, 0, 100, "50",true, false,"","bbb3cf95-b558-4f35-ad7a-61a7cf9b8f4f","bbb3cf95-b558-4f35-ad7a-61a7cf9b8f4f","b1a35a51-4409-4d2e-babb-04c61307b2ec");
         
			GridControlBuilder.GridTextBoxColumnBuilder((IUFTextBoxColumn)column,"",TextAlign.Left, false,"",false,"1","1","50") ;          
	  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"Model0","TextBoxColumnModel", "", 0,this.Model.InventoryMaterialQueryView.Fields["Model"]/*Model*/,"Model", false, true, false, false, false, true, 0, 100, "50",true, false,"","397ea9bc-2c0d-487f-8c56-3c763e295546","397ea9bc-2c0d-487f-8c56-3c763e295546","41eee930-e8f5-41a2-b3fd-4c25cbedc7cd");
         
			GridControlBuilder.GridTextBoxColumnBuilder((IUFTextBoxColumn)column,"",TextAlign.Left, false,"",false,"1","1","50") ;          
	  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"SPECS0","TextBoxColumnModel", "", 0,this.Model.InventoryMaterialQueryView.Fields["SPECS"]/*SPECS*/,"SPECS", false, true, false, false, false, true, 0, 100, "50",true, false,"","260a8e35-9874-402a-a614-6e5792ca4a19","260a8e35-9874-402a-a614-6e5792ca4a19","532ef310-c354-4094-a8a0-cc3c7c72ecc5");
         
			GridControlBuilder.GridTextBoxColumnBuilder((IUFTextBoxColumn)column,"",TextAlign.Left, false,"",false,"1","1","50") ;          
	  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"Project0","ReferenceColumnModel", "", 0,this.Model.InventoryMaterialQueryView.Fields["Project"]/*Project*/,"Project", false, false, false, false, false, true, 7, 100, "19.0",true, false,"","4ef1b27c-51d8-449f-ac7e-84c301e09fb0","4ef1b27c-51d8-449f-ac7e-84c301e09fb0","fff06d42-2936-4cf0-8c4e-6324e87c6982");
			GridControlBuilder.GridReferenceColumnBuilder((IUFFldReferenceColumn)column, ColumnTextAlign.Right, "ID", "Code", "Name", this.Model.InventoryMaterialQueryView.FieldProjectCode/*ProjectCode*/, this.Model.InventoryMaterialQueryView.FieldProjectName/*ProjectName*/, "6d9ff12b-86a7-4d8b-b6f8-eaca0d5d83b7"
			,false,false,580,408);
            ((IUFFldReferenceColumn)column).CtrlId = "fff06d42-2936-4cf0-8c4e-6324e87c6982";
 			((IUFFldReferenceColumn)column).IsMultiOrg  = false ;
           //foreach Reference's input filter parameter
							



						
            //foreach Reference's output set data
							
							
            ((IUFFldReferenceColumn)column).RefRelations.Add(new UFRefRelationAdapter("Code", "ProjectCode", "Value"));
							
            ((IUFFldReferenceColumn)column).RefRelations.Add(new UFRefRelationAdapter("Name", "ProjectName", "Value"));
							
							
            ((IUFFldReferenceColumn)column).ApplyRefRelations();
			  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"ProjectCode0","TextBoxColumnModel", "", 0,this.Model.InventoryMaterialQueryView.Fields["ProjectCode"]/*ProjectCode*/,"ProjectCode", false, true, false, false, false, true, 0, 100, "50",true, false,"","082011bd-d06d-4acc-be14-ab755acced3b","082011bd-d06d-4acc-be14-ab755acced3b","5c5bdb1e-7227-4e43-b996-bb3f99f56d37");
         
			GridControlBuilder.GridTextBoxColumnBuilder((IUFTextBoxColumn)column,"",TextAlign.Left, false,"",false,"1","1","50") ;          
	  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"ProjectName0","TextBoxColumnModel", "", 0,this.Model.InventoryMaterialQueryView.Fields["ProjectName"]/*ProjectName*/,"ProjectName", false, true, false, false, false, true, 0, 100, "50",true, false,"","dacdee5e-f6a3-4d7d-ba5a-20e44e1efdd7","dacdee5e-f6a3-4d7d-ba5a-20e44e1efdd7","53088280-faf1-476c-9b33-1425d20e93fc");
         
			GridControlBuilder.GridTextBoxColumnBuilder((IUFTextBoxColumn)column,"",TextAlign.Left, false,"",false,"1","1","50") ;          
	  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"Salesperson0","TextBoxColumnModel", "", 0,this.Model.InventoryMaterialQueryView.Fields["Salesperson"]/*Salesperson*/,"Salesperson", false, true, false, false, false, true, 0, 100, "50",true, false,"","57d47f69-8e9c-474d-b7f3-121a257ab88c","57d47f69-8e9c-474d-b7f3-121a257ab88c","e7da82f4-cc39-4304-a832-52a669230eb8");
         
			GridControlBuilder.GridTextBoxColumnBuilder((IUFTextBoxColumn)column,"",TextAlign.Left, false,"",false,"1","1","50") ;          
	  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"SalesAssistant0","TextBoxColumnModel", "", 0,this.Model.InventoryMaterialQueryView.Fields["SalesAssistant"]/*SalesAssistant*/,"SalesAssistant", false, true, false, false, false, true, 0, 100, "50",true, false,"","01fca1ab-0870-41b9-a796-4c641c6ea20b","01fca1ab-0870-41b9-a796-4c641c6ea20b","0e2971f0-2a8c-4f53-b63f-62c549eb2542");
         
			GridControlBuilder.GridTextBoxColumnBuilder((IUFTextBoxColumn)column,"",TextAlign.Left, false,"",false,"1","1","50") ;          
	  
		 	                     
			column = GridControlBuilder.GridColumnBuilder(_UFGrid,"AvailableInventory0","NumberColumnModel", "", 0,this.Model.InventoryMaterialQueryView.Fields["AvailableInventory"]/*AvailableInventory*/,"AvailableInventory", false, true, false, false, false, true, 0, 100, "18.0",true, false,"","1f5bb2c9-f5f9-4fd6-ad73-ee937cbc53ae","1f5bb2c9-f5f9-4fd6-ad73-ee937cbc53ae","fbad43fe-aaf1-462f-855c-38b83b5e9416");
			GridControlBuilder.GridNumberColumnBuilder((IUFNumberColumn)column, NumbericType.Numberic, 79228162514264337593543950335m, -79228162514264337593543950335m, null, null, null, null
			,true,"",false,"1","1");
	  
		 
        }





		#endregion
		

	}
}
